#! /usr/bin/env python
# _*_ coding:utf-8 -*-
# FIlename: Reverse.py

def reverse(s):
    return s[::-1]

def main():

    s = raw_input('Enter string:')

    print s
    print reverse(s)

if __name__ == '__main__':
     main()

